<template>
  <div class="login">
      <van-nav-bar
      title="注册页面"
      left-text="返回"
      right-text="Login"
      left-arrow
      @click-left="onClickLeft"
      @click-right="onClickRight"
    />
       <div>注册</div>
  </div>
</template>
<script>
// @ is an alias to /src
// import HelloWorld from '@/components/HelloWorld.vue'
import Heraders from '@/components/Header.vue'
export default {
  name: 'login',
  components: {
      Heraders
  },
  mounted(){
  },
  methods: {
    onClickLeft() {
      // this.$toast('返回');
     this.loading = this.$toast.loading({
      message: '加载中...',
      forbidClick: true,
      duration:this.loadtime
    });
    },
    onClickRight() {
      this.$router.push({
        path:'/login',
        query:{
          id:"123"
        }
        // name:"login",
        // params: {
        //     id: '123'
        // }
      })
      // this.loadtime = 1;
      // Toast('按钮');
    }
  }
}
</script>